package com.thkj.modules.check.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.thkj.modules.check.entity.TblCheck;
import com.thkj.modules.check.service.TblCheckService;

import dp.dao.PagingList;
import dp.service.BaseService;

@Service
public class TblCheckServiceImpl extends BaseService implements TblCheckService {
	public void insertTblCheck(TblCheck t) {
		dao.insert("com.thkj.mapper.TblCheck.insert", t);
	}

	public int updateTblCheck(TblCheck t) {
		int row = dao.update("com.thkj.mapper.TblCheck.update", t);
		return row;
	}

	public int deleteTblCheck(String t) {
		return dao.delete("com.thkj.mapper.TblCheck.delete", t);
	}

	public TblCheck getTblCheckById(String t) {
		return dao.queryForObject("com.thkj.mapper.TblCheck.getById", t, TblCheck.class);
	}

	@Override
	public PagingList<Map> query(int pageIndex, int pageSize, Map<String, Object> param) {
		return dao.queryForPagingList("com.thkj.mapper.TblCheck.query", param, pageIndex, pageSize, Map.class);
	}

	@Override
	public int updateResult(TblCheck t) {
		int row = dao.update("com.thkj.mapper.TblCheck.updateResult", t);
		return row;
	}

}